//
//  HABleModel.h
//  EKLLighting
//
//  Created by Chris on 2021/4/30.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HABleModel : NSObject

@property (nonatomic, copy) NSString *snCode;//设备的唯一ID

@property (nonatomic, copy) NSString *magic;//魔数

@property (nonatomic, copy) NSString *Cmd;//长度

@property (nonatomic, strong) NSData *originData;      //原始数据

@property (nonatomic, copy, nullable) void (^bleCompleHander)(HABleModel *);//回调

- (void)parserCmdData:(NSData *)data;

- (int)step_status;

- (uint16_t)open_lock_distance;

- (uint16_t)auto_power_off_time;

- (uint16_t)fourg_vibration_sensitivity;

- (uint16_t)vibration_sensitivity;

- (uint16_t)voltage;

- (uint16_t)capacity;

- (uint16_t)sos_charge;

- (NSString *)sn_code;

- (NSString *)imei;

- (NSString *)firmware_version;

- (uint16_t)lock_status;

- (uint16_t)power_status;

- (uint16_t)fourG_signal;

- (uint16_t)gps_signal;

@end

NS_ASSUME_NONNULL_END
